<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>添加新会员</title>
<link href='css/base.css' rel='stylesheet' type='text/css'>
</head>
<body background='img/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#E2F5BC;">
  <form name="form1" action="member_add.php" method="post">
   <input type='hidden' name='dopost' value='save'>
    <tr> 
      <td height="28" colspan="2" background="img/tbg.gif">
      	<b>&nbsp;<a href="member_main.php"><u>会员管理</u></a>  &gt; 添加新会员：</b>
      </td>
    </tr>
    <tr> 
      <td width="19%" align="center" bgcolor="#FFFFFF">用户名</td>
      <td width="81%" bgcolor="#FFFFFF"><input name="userid" type="text" id="userid"> 
      </td>
    </tr>
	<tr> 
      <td align="center" bgcolor="#FFFFFF">真正姓名</td>
      <td bgcolor="#FFFFFF"> <input name="uname" type="text" id="uname"> </td>
    </tr>
	<tr> 
      <td align="center" bgcolor="#FFFFFF">性别</td>
      <td bgcolor="#FFFFFF"> 
	  <input type="radio" name="sex" value="1" checked/> 男 &nbsp;
      <input type="radio" name="sex" value="2" /> 女 &nbsp; 
	  </td>
    </tr>
	
		  
    <tr> 
      <td align="center" bgcolor="#FFFFFF">用户密码</td>
      <td bgcolor="#FFFFFF"> <input name="password" type="text" id="password"> </td>
    </tr>
    <tr> 
      <td align="center" bgcolor="#FFFFFF">Email</td>
      <td bgcolor="#FFFFFF"><input name="email" type="text" id="email" size="30"> </td>
    </tr>
	<tr> 
      <td align="center" bgcolor="#FFFFFF">分公司或经销商名称</td>
      <td bgcolor="#FFFFFF"><input name="company" type="text" id="company"></td>
    </tr>
	<tr> 
      <td align="center" bgcolor="#FFFFFF">地址</td>
      <td bgcolor="#FFFFFF"><input name="address" type="text" id="address"></td>
    </tr>
	<tr> 
      <td align="center" bgcolor="#FFFFFF">手机</td>
      <td bgcolor="#FFFFFF"><input name="mobile" type="text" id="mobile"></td>
    </tr>
	<tr> 
      <td align="center" bgcolor="#FFFFFF">电话</td>
      <td bgcolor="#FFFFFF"><input name="tel" type="text" id="tel"></td>
    </tr>
	<tr> 
      <td align="center" bgcolor="#FFFFFF">传真</td>
      <td bgcolor="#FFFFFF"><input name="fax" type="text" id="fax"></td>
    </tr>
	<tr>
       <td align="center" bgcolor="#FFFFFF">会员权限</td>
       <td bgcolor="#FFFFFF"> <select name="rank" id="rank" style="width:200px">
                <?php
              $urank = $cuserLogin->getUserRank();
              $dsql->SetQuery("Select * from `#@__arcrank` where rank>0");
              $dsql->Execute();
              while($row = $dsql->GetObject())
              {
              	echo "     <option value='".$row->rank."'>".$row->membername."</option>\r\n";
              }
              ?>
              </select> </td>
	</tr>
    <tr bgcolor="#F9FDF0"> 
      <td height="28" colspan="2"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td width="26%">&nbsp;</td>
            <td width="15%"><input name="imageField" type="submit" class="np coolbg" value="提交" /></td>
            <td width="59%"><input type="button" name="button" id="button" value="返回" onClick="location='member_main.php';" class="np coolbg" /></td>
          </tr>
        </table></td>
    </tr>
  </form>
</table>
</body>
</html>